package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 合同对象 contract
 */
public class CoContract extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 合同ID */
    private Long id;

    /** 用户ID */
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    /** 用户名称 */
    private String userName;

    /** 合同标题 */
    @NotBlank(message = "合同标题不能为空")
    @Size(min = 0, max = 255, message = "合同标题长度不能超过255个字符")
    private String title;

    /** 文件路径 */
    @NotBlank(message = "文件路径不能为空")
    private String filePath;

    /** 文件类型 */
    private String fileType;

    /** 文件大小 */
    private Long fileSize;

    /** 状态（0待审核 1审核中 2已通过 3已拒绝） */
    private Integer status;

    /** 合同类型（劳动、咨询、保密、竞业限制、采购、销售等） */
    private String contractType;

    /** 风险等级 */
    private Integer riskLevel;

    /** 合同内容 */
    private String content;

    /** 分析结果JSON */
    private String analysisResult;

    /** 备注 */
    private String remark;

    /** 审核时间 */
    private Date reviewTime;

    /** 删除标志（0代表存在 1代表删除） */
    private Boolean deleted;

    // Getters and Setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public Integer getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(Integer riskLevel) {
        this.riskLevel = riskLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnalysisResult() {
        return analysisResult;
    }

    public void setAnalysisResult(String analysisResult) {
        this.analysisResult = analysisResult;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("title", getTitle())
                .append("filePath", getFilePath())
                .append("fileType", getFileType())
                .append("fileSize", getFileSize())
                .append("status", getStatus())
                .append("contractType", getContractType())
                .append("riskLevel", getRiskLevel())
                .append("content", getContent())
                .append("analysisResult", getAnalysisResult())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("reviewTime", getReviewTime())
                .append("deleted", getDeleted())
                .toString();
    }
}
